
function clearCacheWithOutToken() {
	return new Promise((resolve, reject)=>{
		uni.removeStorageSync("guardian");
		uni.removeStorageSync("package");
		uni.removeStorageSync("patient");
		uni.removeStorageSync("equip");
		uni.removeStorageSync("roleInfo");
		uni.removeStorageSync("confirmInfo");
		uni.removeStorageSync("payData");
		uni.removeStorageSync("orderIndex");
		uni.removeStorageSync('inspectDetail');
		uni.removeStorageSync('hospitalName');
		uni.removeStorageSync('programFresh');
		uni.removeStorageSync('addCartList');
		uni.removeStorageSync("buyList");
		uni.removeStorageSync("chooseProgramList");
		uni.removeStorageSync("nofresh")
		resolve('success')
	})
}

function clearAll() {
	return new Promise((resolve, reject)=>{
		uni.removeStorageSync("token");
		uni.removeStorageSync("hospitalId");
		uni.removeStorageSync("role");
		uni.removeStorageSync("doctorName");
		uni.removeStorageSync("guardian");
		uni.removeStorageSync("package");
		uni.removeStorageSync("patient");
		uni.removeStorageSync("equip");
		uni.removeStorageSync("roleInfo");
		uni.removeStorageSync("confirmInfo");
		uni.removeStorageSync("payData");
		uni.removeStorageSync("orderIndex");
		uni.removeStorageSync('inspectDetail');
		uni.removeStorageSync('hospitalName');
		uni.removeStorageSync('programFresh');
		uni.removeStorageSync('addCartList');
		uni.removeStorageSync("buyList");
		uni.removeStorageSync("chooseProgramList");
		uni.removeStorageSync("nofresh")
		resolve('success')
	})
}

export default {
	clearCacheWithOutToken,
	clearAll
}